package tool;

import java.util.Map;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

import tool.bean.SysArgs;

public class SysArgsTool {
	static public SysArgs getSysArgs(){
		Resource rs = new ClassPathResource("bean-config.xml");
		@SuppressWarnings("deprecation")
		BeanFactory factory = new XmlBeanFactory(rs);
		return (SysArgs) factory.getBean("sysArgs");
	}
	
	
public static void main(String[] args){

}

}
